package com.cqndt.visual.vo;

import java.io.Serializable;

/**
 * Created By marc
 * Date: 2021/5/12  15:48
 * Description:飞行参数
 */
public class FlightDataVo implements Serializable {

    private static final long serialVersionUID = -1465239840030123090L;

    //APP 版本号
    private String appVersions;
    //无人机飞控序列号
    private String uavSn;
    //无人机固件版本
    private String uavFirmwareVersion;
    //无人机型号
    private String uavModel;
    //APP 软件标识
    private String appSwflag;
    //飞机实时位置
    private String uavLatitude;
    //飞机实时位置
    private String uavLongitude;
    //long 型 飞机 gps 实时时间
    private String uavGpsTime;
    //飞机飞行时间单位/s
    private String uavFlyTime;
    //飞机飞行高度
    private String uavFlyingHeight;
    //空速 km/h
    private String airSpeed;
    //地速 km/h
    private String landSpeed;
    //rtk 状态/
    private String orienteering;
    //航向角
    private String angle;
    //气压高度 1.777
    private String pressure;
    //飞行俯仰角度 88.6
    private String pitchangle;
    //飞行横滚角度 0
    private String roll;
    //GPS 星数 118.8679
    private String gpsNum;
    //当前电量%，留整（/10）
    private String electricQuantity;
    //电压 1
    private String voltage;
    //电池电流，正数正在充电，
    //负数正在放电，单位 ma
    private String current;
    //电池温度
    private String temperature;
    //垂直飞行速度
    private String verticalSpeed;
    //飞行航向
    private String attitude;
    //飞行方位角
    private String flyHeading;
    //电池告警
    private String batteryWarning;
    //图传信号
    private String videoSignal;
    //遥控器信号
    private String remoteControlSignal;
    //吊舱视角纬度度
    private String podLatitude;
    //吊舱视角经度
    private String podLongitude;
    //AI 检测人群人数
    private String aiPeopleNum;
    //AI监测车辆数
    private String aiCarNum;
    //飞行航向
    private String yaw;

    private String code = "0";

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getYaw() {
        return yaw;
    }

    public void setYaw(String yaw) {
        this.yaw = yaw;
    }

    public String getAiCarNum() {
        return aiCarNum;
    }

    public void setAiCarNum(String aiCarNum) {
        this.aiCarNum = aiCarNum;
    }

    public String getAppVersions() {
        return appVersions;
    }

    public void setAppVersions(String appVersions) {
        this.appVersions = appVersions;
    }

    public String getUavSn() {
        return uavSn;
    }

    public void setUavSn(String uavSn) {
        this.uavSn = uavSn;
    }

    public String getUavFirmwareVersion() {
        return uavFirmwareVersion;
    }

    public void setUavFirmwareVersion(String uavFirmwareVersion) {
        this.uavFirmwareVersion = uavFirmwareVersion;
    }

    public String getUavModel() {
        return uavModel;
    }

    public void setUavModel(String uavModel) {
        this.uavModel = uavModel;
    }

    public String getAppSwflag() {
        return appSwflag;
    }

    public void setAppSwflag(String appSwflag) {
        this.appSwflag = appSwflag;
    }

    public String getUavLatitude() {
        return uavLatitude;
    }

    public void setUavLatitude(String uavLatitude) {
        this.uavLatitude = uavLatitude;
    }

    public String getUavLongitude() {
        return uavLongitude;
    }

    public void setUavLongitude(String uavLongitude) {
        this.uavLongitude = uavLongitude;
    }

    public String getUavGpsTime() {
        return uavGpsTime;
    }

    public void setUavGpsTime(String uavGpsTime) {
        this.uavGpsTime = uavGpsTime;
    }

    public String getUavFlyTime() {
        return uavFlyTime;
    }

    public void setUavFlyTime(String uavFlyTime) {
        this.uavFlyTime = uavFlyTime;
    }

    public String getUavFlyingHeight() {
        return uavFlyingHeight;
    }

    public void setUavFlyingHeight(String uavFlyingHeight) {
        this.uavFlyingHeight = uavFlyingHeight;
    }

    public String getAirSpeed() {
        return airSpeed;
    }

    public void setAirSpeed(String airSpeed) {
        this.airSpeed = airSpeed;
    }

    public String getLandSpeed() {
        return landSpeed;
    }

    public void setLandSpeed(String landSpeed) {
        this.landSpeed = landSpeed;
    }

    public String getOrienteering() {
        return orienteering;
    }

    public void setOrienteering(String orienteering) {
        this.orienteering = orienteering;
    }

    public String getAngle() {
        return angle;
    }

    public void setAngle(String angle) {
        this.angle = angle;
    }

    public String getPressure() {
        return pressure;
    }

    public void setPressure(String pressure) {
        this.pressure = pressure;
    }

    public String getPitchangle() {
        return pitchangle;
    }

    public void setPitchangle(String pitchangle) {
        this.pitchangle = pitchangle;
    }

    public String getRoll() {
        return roll;
    }

    public void setRoll(String roll) {
        this.roll = roll;
    }

    public String getGpsNum() {
        return gpsNum;
    }

    public void setGpsNum(String gpsNum) {
        this.gpsNum = gpsNum;
    }

    public String getElectricQuantity() {
        return electricQuantity;
    }

    public void setElectricQuantity(String electricQuantity) {
        this.electricQuantity = electricQuantity;
    }

    public String getVoltage() {
        return voltage;
    }

    public void setVoltage(String voltage) {
        this.voltage = voltage;
    }

    public String getCurrent() {
        return current;
    }

    public void setCurrent(String current) {
        this.current = current;
    }

    public String getTemperature() {
        return temperature;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public String getVerticalSpeed() {
        return verticalSpeed;
    }

    public void setVerticalSpeed(String verticalSpeed) {
        this.verticalSpeed = verticalSpeed;
    }

    public String getAttitude() {
        return attitude;
    }

    public void setAttitude(String attitude) {
        this.attitude = attitude;
    }

    public String getFlyHeading() {
        return flyHeading;
    }

    public void setFlyHeading(String flyHeading) {
        this.flyHeading = flyHeading;
    }

    public String getBatteryWarning() {
        return batteryWarning;
    }

    public void setBatteryWarning(String batteryWarning) {
        this.batteryWarning = batteryWarning;
    }

    public String getVideoSignal() {
        return videoSignal;
    }

    public void setVideoSignal(String videoSignal) {
        this.videoSignal = videoSignal;
    }

    public String getRemoteControlSignal() {
        return remoteControlSignal;
    }

    public void setRemoteControlSignal(String remoteControlSignal) {
        this.remoteControlSignal = remoteControlSignal;
    }

    public String getPodLatitude() {
        return podLatitude;
    }

    public void setPodLatitude(String podLatitude) {
        this.podLatitude = podLatitude;
    }

    public String getPodLongitude() {
        return podLongitude;
    }

    public void setPodLongitude(String podLongitude) {
        this.podLongitude = podLongitude;
    }

    public String getAiPeopleNum() {
        return aiPeopleNum;
    }

    public void setAiPeopleNum(String aiPeopleNum) {
        this.aiPeopleNum = aiPeopleNum;
    }

    @Override
    public String toString() {
        return "{" +
                " \"appVersions\":\"" + appVersions +"\""+
                " ,\"code\":\"" + code +"\""+
                ", \"uavSn\":\"" + uavSn +"\""+
                ", \"uavFirmwareVersion\":\"" + uavFirmwareVersion +"\""+
                ", \"uavModel\":\"" + uavModel +"\""+
                ", \"appSwflag\":\"" + appSwflag +"\""+
                ", \"uavLatitude\":\"" + uavLatitude +"\""+
                ", \"uavLongitude\":\"" + uavLongitude +"\""+
                ", \"uavGpsTime\":\"" + uavGpsTime +"\""+
                ", \"uavFlyTime\":\"" + uavFlyTime +"\""+
                ", \"uavFlyingHeight\":\"" + uavFlyingHeight +"\""+
                ", \"airSpeed\":\"" + airSpeed +"\""+
                ", \"landSpeed\":\"" + landSpeed +"\""+
                ", \"orienteering\":\"" + orienteering +"\""+
                ", \"angle\":\"" + angle +"\""+
                ", \"pressure\":\"" + pressure +"\""+
                ", \"pitchangle\":\"" + pitchangle +"\""+
                ", \"roll\":\"" + roll +"\""+
                ", \"gpsNum\":\"" + gpsNum +"\""+
                ", \"electricQuantity\":\"" + electricQuantity +"\""+
                ", \"voltage\":\"" + voltage +"\""+
                ", \"current\":\"" + current +"\""+
                ", \"temperature\":\"" + temperature +"\""+
                ", \"verticalSpeed\":\"" + verticalSpeed +"\""+
                ", \"attitude\":\"" + attitude +"\""+
                ", \"flyHeading\":\"" + flyHeading +"\""+
                ", \"batteryWarning\":\"" + batteryWarning +"\""+
                ", \"videoSignal\":\"" + videoSignal +"\""+
                ", \"remoteControlSignal\":\"" + remoteControlSignal +"\""+
                ", \"podLatitude\":\"" + podLatitude +"\""+
                ", \"podLongitude\":\"" + podLongitude +"\""+
                ", \"aiPeopleNum\":\"" + aiPeopleNum +"\""+
                "}";
    }

    public String toString1() {
        return
                "{ " +
                        "\"airSpeed\":"+airSpeed+", " +
                        "\"landSpeed\":"+landSpeed+", " +
                        "\"uavFlyingHeight\":"+uavFlyingHeight+", " +
                        "\"uavLatitude\":"+uavLatitude+", " +
                        "\"code\":"+code+", " +
                        "\"uavLongitude\":"+uavLongitude+
                        "}";
    }

    public static void main(String[] args) {
        FlightDataVo dto = new FlightDataVo();
        dto.setUavLatitude("21.54512");
        dto.setUavLongitude("100.74156");
        dto.setAirSpeed(Math.random()*100+"");
        dto.setLandSpeed(Math.random()*100+"");
        dto.setUavFlyingHeight(Math.random()*100+"");
        System.out.println(dto.toString1());
    }

}
